package com.cherish.pattern.proxy.dynamicproxy.jdk;

import com.cherish.pattern.proxy.model.Girl;
import com.cherish.pattern.proxy.model.Person;

import java.lang.reflect.Method;

/**
 * @Classname TestJdkProxy
 * @Date 2019/4/7 17:22
 * @Author admin
 * @Description TODO
 */
public class TestJdkProxy {

    public static void main(String[] args) throws Throwable{
        Object o = new MeiPoProxy().getInstants(new Girl());
        Method method = o.getClass().getMethod("findLove",null);
        method.invoke(o,null);
    }

}
